package com.woniuxy.service.impl;

import com.woniuxy.entity.Subject;
import com.woniuxy.mapper.SubjectMapper;
import com.woniuxy.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectServiceImpl implements SubjectService {
    @Autowired
    private SubjectMapper subjectMapper;

    @Override
    public List<Subject> findSubjectByNid(int nid) {

        return subjectMapper.findSubjectByNid(nid);
    }

}
